package com.extend_.ExtendsExercise;

/**
 * @Author 小闽
 * @Date 2024/8/9 21:55
 * @PackageName: com.extend_.ExtendsExercise
 * @ClassName: NotePad
 * @Description: 子类
 * @Version 1.0
 */
public class NotePad extends Computer {
    private String color;
    // 子类构造器(有参构造器)
    public NotePad(String cpu, int memory, int disk, String color) {
        super(cpu, memory, disk);
        this.color = color;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }
    public void notePrintInfo(){
        System.out.println(getDetails() + "color=" + color);
    }

}
